import 'package:flutter/material.dart';
import 'package:hixing_app/const/color_res.dart';

/// app 字体扩展
extension BoxDecorationExt on BoxDecoration {
  BoxDecoration get getShadow => copyWith(boxShadow: [
        BoxShadow(
            color: ColorRes.shadowColor.withOpacity(0.3),
            blurRadius: 2,
            offset: Offset(0, 1))
      ]);

  BoxDecoration get getShadow2 => copyWith(boxShadow: [
        BoxShadow(
            color: ColorRes.shadowColor.withOpacity(0.1),
            blurRadius: 2,
            offset: Offset(0, 1))
      ]);
}
